package com.ruoyi.db.system.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 通知公告表 sys_notice
 *
 * @author ruoyi
 */
@ApiModel("通知公告表实体类")
@Data
@EqualsAndHashCode(callSuper = true)
public class SysNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("公告ID")
    private Long noticeId;

    @ApiModelProperty("公告标题")
    @NotBlank(message = "公告标题不能为空")
    @Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
    private String noticeTitle;

    @ApiModelProperty("公告类型（1通知 2公告）")
    private String noticeType;

    @ApiModelProperty("公告内容")
    private String noticeContent;

    @ApiModelProperty("公告状态（0正常 1关闭）")
    private String status;
}
